

var target = UIATarget.localTarget();
var loop = true; // true sets infinite loop count
var loopCounter = 0; 

while(loop)
{
//general 
	

UIALogger.logMessage("SCRIPT RUN : " + loopCounter);

target.frontMostApp().mainWindow().tableViews()["Empty list"].cells()["ALL CHANNELS"].tap();
target.frontMostApp().mainWindow().navigationBar().buttons()["skyBack"].tap();
target.frontMostApp().mainWindow().tableViews()["Empty list"].cells()["SPORTS"].tap();
target.frontMostApp().mainWindow().navigationBar().buttons()["skyBack"].tap();
target.frontMostApp().mainWindow().tableViews()["Empty list"].cells()["MOVIES"].tap();
target.frontMostApp().mainWindow().navigationBar().buttons()["skyBack"].tap();
target.frontMostApp().mainWindow().tableViews()["Empty list"].cells()["NEWS"].tap();
target.frontMostApp().mainWindow().navigationBar().buttons()["skyBack"].tap();

target.frontMostApp().mainWindow().navigationBar().buttons()["icon settings"].tap();
target.frontMostApp().mainWindow().navigationBar().buttons()["skyBack"].tap();
target.frontMostApp().mainWindow().navigationBar().buttons()["icon help"].tap();
target.frontMostApp().mainWindow().navigationBar().buttons()["skyBack"].tap();
	
target.setDeviceOrientation(UIA_DEVICE_ORIENTATION_LANDSCAPERIGHT);	
target.setDeviceOrientation(UIA_DEVICE_ORIENTATION_PORTRAIT);	
++loopCounter;
}